<?xml version="1.0" encoding="ISO-8859-1" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html" version="2.0">
	<jsp:directive.page language="java"
		contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" />
	<jsp:text>
		<![CDATA[ <?xml version="1.0" encoding="ISO-8859-1" ?> ]]>
	</jsp:text>
	<jsp:text>
		<![CDATA[ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ]]>
	</jsp:text>
	<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
	<title>Login</title>
	</head>
	<body>
	<f:view>
		<f:loadBundle basename="fr.uhp.wiki.messages" var="msg"/>	
		<h:form>
			<h:panelGrid border="0" columns="2">
			<f:validator validatorId="fr.uhp.wiki.UserValidator"/>
				<h:outputText id="username" value="#{msg.name}"></h:outputText>
				<h:panelGrid border="0" columns="2">
					<h:inputText id="name" value="#{user.name}" required="true">
						<f:validateLength minimum="3"/>
					</h:inputText>
					<h:message style="color:red" for="name"></h:message>
				</h:panelGrid>
				<h:outputText id="userpassword" value="#{msg.password}"></h:outputText>
				<h:panelGrid border="0" columns="2">
					<h:inputSecret id="password" value="#{user.password}" required="true">
						<f:validator validatorId="fr.uhp.wiki.PasswordValidator"/>
					</h:inputSecret>
					<h:message style="color:red" for="password"></h:message>
				</h:panelGrid>
			</h:panelGrid>
			<h:commandLink value="Login" action="login"></h:commandLink>
		</h:form>
	</f:view>
	</body>
	</html>
</jsp:root>